import request from "@/utils/request";
import type {ICommonResponse} from "@/types/global";

export interface IUser {
    nickName: string,
    loginName: string,
    introduceSign: string
}

const getUserInfoAPI = (): ICommonResponse<IUser> => {
    return request({
        url: '/api/v1/user/info',
        method: "GET",
    })
}

export default getUserInfoAPI;